//
//  CYYNetWorkManager+GetSomeUserParties.h
//  LetsPartyBmob
//
//  Created by rimi on 15/9/9.
//  Copyright (c) 2015年 柴阳阳. All rights reserved.
//

#import "CYYNetWorkManager.h"

//成功block
typedef void(^SucessGet)(NSArray *array);
@interface CYYNetWorkManager (GetSomeUserParties)

//查询自己的【所有发起的活动】
+ (void)getMySponsorPartiesSucessGet:(SucessGet)sucessGet
                                fail:(Fail)fail;

//根据某个用户(该用户的手机号)查询该用户的【所有发起的活动】
+ (void)getSomeUserSponsorParties:(NSString *)mobilePhoneNumber
                        sucessGet:(SucessGet)sucessGet
                             fail:(Fail)fail;
@end

//查询结果返回示例
/*
 活动列表：(
 "\nclassName = Parties;\nobjectId = 5350ba7d57;\ncreatedAt = 2015-09-09 11:07:49 +0000;\nupdatedAt = 2015-09-09 11:12:14 +0000;\ndate = {\n    partyBeginTime = \"2015/09/01\";\n    partyDetailText = \"\\U6211\\U4eec\\U4e00\\U8d77\\U9ad8\\U7ea7\\U6765\";\n    partyEndTime = \"2015/09/10\";\n    partyParticipators =     {\n        \"__type\" = Relation;\n        className = \"_User\";\n    };\n    partyPositionCoordinate =     {\n        \"__type\" = GeoPoint;\n        latitude = \"39.9137683824291\";\n        longitude = \"116.3972778618336\";\n    };\n    partyPositionName = \"\\U5b75\\U5316\\U56ed21\";\n    partySecretCode = 123456;\n    partySponsor =     {\n        \"__type\" = Pointer;\n        className = \"_User\";\n        objectId = 0664e2a5fd;\n    };\n    partyTitle = \"\\U56e2\\U621821\";\n};",
 "\nclassName = Parties;\nobjectId = 0aa6a607ec;\ncreatedAt = 2015-09-09 11:07:57 +0000;\nupdatedAt = 2015-09-09 11:07:57 +0000;\ndate = {\n    partyBeginTime = \"2015/09/01\";\n    partyDetailText = \"\\U6211\\U4eec\\U4e00\\U8d77\\U9ad8\\U7ea7\\U6765\";\n    partyEndTime = \"2015/09/10\";\n    partyParticipators =     {\n        \"__type\" = Relation;\n        className = \"_User\";\n    };\n    partyPositionCoordinate =     {\n        \"__type\" = GeoPoint;\n        latitude = \"39.9137683824291\";\n        longitude = \"116.3972778618336\";\n    };\n    partyPositionName = \"\\U5b75\\U5316\\U56ed21\";\n    partySecretCode = 123456;\n    partySponsor =     {\n        \"__type\" = Pointer;\n        className = \"_User\";\n        objectId = 0664e2a5fd;\n    };\n    partyTitle = \"\\U56e2\\U621822\";\n};"
 )
 */